package com.example.practice.dao;

import com.example.practice.entity.AdmiYear;
import com.example.practice.entity.Admission;
import com.example.practice.entity.MiddleSchool;
import com.example.practice.entity.MiddleSum;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * (MiddleSchool)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-29 11:02:00
 */
public interface MiddleSchoolDao {


    List<MiddleSchool> queryAllByUid(@Param("uid")Integer uid);

    List<MiddleSum> getSumByUid(@Param("uid")Integer uid);

    List<AdmiYear> getAdmission(@Param("mid")Integer mid, @Param("uid")Integer uid);

    List<MiddleSchool> getMiddleSchool();

    List<MiddleSchool> joinMiddleSchool(@Param("aid")Integer aid);

    Integer insertMiddleSchool(@Param("middleSchools") List<MiddleSchool> middleSchools);

    Integer insertAdmission(@Param("admissions") List<Admission> admissions);
}

